package com.example.xungeng2.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xungeng2.mapper.PatrolMapper;
import com.example.xungeng2.pojo.Patrol;
import com.example.xungeng2.service.PatrolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PatrolServiceImpl extends ServiceImpl<PatrolMapper, Patrol> implements PatrolService {
    @Autowired
    private PatrolService patrolService;
    @Override
    public Page<Patrol> selectPage(long page, long limit) {
        Page<Patrol> patrolPage = baseMapper.selectPage(new Page<>(page, limit), null);
        return patrolPage;
    }
}
